package com.qianbao.domain.address;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

public class AddressEntity implements Serializable{

    private String address_id;

    @NotNull(message = "姓名不能为空")
    private String name;

    @NotNull(message = "手机号不能为空")
    private String phone;

    @NotNull(message = "省不能为空")
    private String province;

    @NotNull(message = "市不能为空")
    private String city;

    @NotNull(message = "地区不能为空")
    private String area;

    @NotNull(message = "详细地址不能为空")
    private String address;

    @NotNull(message = "默认地址不能为空")
    private String is_default;

    @NotNull(message = "用户id不能为空")
    private String custom_id;

    public String getAddress_id() {
        return address_id;
    }

    public void setAddress_id(String address_id) {
        this.address_id = address_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getIs_default() {
        return is_default;
    }

    public void setIs_default(String is_default) {
        this.is_default = is_default;
    }

    public String getCustom_id() {
        return custom_id;
    }

    public void setCustom_id(String custom_id) {
        this.custom_id = custom_id;
    }

    @Override
    public String toString() {
        return "AddressEntity{" +
                "address_id='" + address_id + '\'' +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", area='" + area + '\'' +
                ", address='" + address + '\'' +
                ", is_default='" + is_default + '\'' +
                ", custom_id='" + custom_id + '\'' +
                '}';
    }
}
